package StringBuilder_note;

public class StringReplace {
    public static void main(String[] args) {
        //1.获取话语
        String take = "c 你玩的真好，下次别玩了，";
        //2.定义敏感数组
        String[] arr = {"nm","c"};
        //3.循环,替换
        for (int i = 0; i < arr.length; i++) {
            take = take.replace(arr[i],"**");
        }
        //4.打印、
        System.out.println(take);

    }
}
